/*
 * Testdriver.c
 *
 *  Created on: 19.01.2013
 *      Author: phru
 */
#include <stdlib.h>
#include "Observer.h"
#include "Observable.h"

int main(void){
	Observer_t* observer = createObserver();
	Observer_t* observer1 = createObserver();

	Observable_t* observable = createObservable();

	observable->reg(observable, observer);
	observable->reg(observable, observer1);
	observable->update(observable);

	free(observer);
	free(observable);
	return 1;
}
